package com.tm.util;

/**
 * @类名 PageUtil
 * @说明
 * @创建人 liuyuhao
 * @创建时间 2022/7/49:16
 **/
public class PageUtil {
    //总条数
    private Long totalCount;
    //当前页
    private Integer cPage=1;
    //每页条数
    private Integer pageSize=10;
    //开始下标
    private Integer index=0;
    //数据
    private Object data;


    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getcPage() {
        return cPage;
    }

    public void setcPage(Integer cPage) {
        this.cPage = cPage;
        this.index = (this.cPage-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        this.index = (this.cPage-1)*this.pageSize;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
